package com.lwlk.zdk.mapper.sys;

import com.lwlk.zdk.model.sys.sysEnterprise;
import com.lwlk.zdk.model.sys.sysEnterpriseExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface sysEnterpriseMapper {
    int countByExample(sysEnterpriseExample example);

    int deleteByExample(sysEnterpriseExample example);

    int insert(sysEnterprise record);

    int insertSelective(sysEnterprise record);

    List<sysEnterprise> selectByExample(sysEnterpriseExample example);

    int updateByExampleSelective(sysEnterprise record);

    int updateByExample(@Param("record") sysEnterprise record);

     Map<String, Object> selectEnterprise();

    int deleteBatch(Integer[] id);

     List<Map<String,Object>>selectAll(@Param("areaCode") String areaCode,@Param("enterprise") String enterprise);

    String selectBusiness(@Param("enterpriseId") Integer enterpriseId);

    String selectAccessCode(@Param("s") int s);

    List<Map<String, Object>> selectPlatform(@Param("enterpriseId") Integer enterpriseId);

    int selectJoinPlatform(@Param("areaCode") String areaCode);

    int selectEnterpriseCount();

    int selectRegularEnterprise(@Param("areaCode") String areaCode);

    int selectCharteredEnterprise(@Param("areaCode") String areaCode);

    int selectDangerousGoodsEnterprise(@Param("areaCode") String areaCode);

    List<Map<String, Object>> searchEnterprise(@Param("areaCode") String areaCode);



    List<Map<String, Object>> selectEnterpriseName();

    String selectBusinessCertificate(@Param("parseInt") int parseInt);

    List<Map<String, Object>> selectByAreaCode(@Param("areaCode") String areaCode,@Param("platformId") Integer platformId);

    int delete(@Param("id") Integer id);

    String selectByEid(@Param("eId") Integer eId);

    List<Map<String, Object>> selectByeId(@Param("eId")Integer eId);

    String selectDimEnterpriseName(String enterpriseName);

    int selectManyVehicleNumber(@Param("enterprise") String enterprise);

    List<Map<String, Object>> selectDetails(@Param("enterpriseId") Integer enterpriseId);

    List<Map> selectEnterpriseNameList(@Param("eName") String eName);


}